Release 10.1A: OpenEdge Development:
Web Services


Creating and using a SubAppObject

Any AppObject that defines SubAppObjects also defines a built-in class factory method specifically for each SubAppObject. This method establishes an association between the client and the SubAppObject managed on the WSA for use by the client.

To create and use a SubAppObject:

  1. Call the class factory method for this SubAppObject on the parent AppObject.
  2. Instantiate (create) the SubAppObject as appropriate for the client platform.
  3. Obtain the SubAppObject ID value from the response header. You use the SubAppObject ID for all subsequent calls to methods on the SubAppObject.
  4. Invoke any available methods on the SubAppObject.
  5. Ensure the last method you invoke on the SubAppObject is the object’s release method. For more information, see the "Releasing an object" section.
  6. Note: You can instantiate a SubAppObject either before or after calling the class factory method, but you must do both to invoke methods on the SubAppObject.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095